package pe.gob.sunarp.entidad;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the USO_SERVICIO database table.
 * 
 */
@Entity
@Table(name="USO_SERVICIO")
public class UsoServicio implements Serializable {
	private static final long serialVersionUID = 1L;
	private UsoServicioPK id;
	private BigDecimal rbm;
	private BigDecimal rpi;
	private BigDecimal rpj;
	private BigDecimal rpn;
	private BigDecimal valTotal;
	private TmServicio tmServicio;

    public UsoServicio() {
    }


	@EmbeddedId
	public UsoServicioPK getId() {
		return this.id;
	}

	public void setId(UsoServicioPK id) {
		this.id = id;
	}
	

	@Column(nullable=false, precision=5)
	public BigDecimal getRbm() {
		return this.rbm;
	}

	public void setRbm(BigDecimal rbm) {
		this.rbm = rbm;
	}


	@Column(nullable=false, precision=5)
	public BigDecimal getRpi() {
		return this.rpi;
	}

	public void setRpi(BigDecimal rpi) {
		this.rpi = rpi;
	}


	@Column(nullable=false, precision=5)
	public BigDecimal getRpj() {
		return this.rpj;
	}

	public void setRpj(BigDecimal rpj) {
		this.rpj = rpj;
	}


	@Column(nullable=false, precision=5)
	public BigDecimal getRpn() {
		return this.rpn;
	}

	public void setRpn(BigDecimal rpn) {
		this.rpn = rpn;
	}


	@Column(name="VAL_TOTAL", nullable=false)
	public BigDecimal getValTotal() {
		return this.valTotal;
	}

	public void setValTotal(BigDecimal valTotal) {
		this.valTotal = valTotal;
	}


	//bi-directional many-to-one association to TmServicio
    @ManyToOne
	@JoinColumn(name="SERVICIO_ID", nullable=false, insertable=false, updatable=false)
	public TmServicio getTmServicio() {
		return this.tmServicio;
	}

	public void setTmServicio(TmServicio tmServicio) {
		this.tmServicio = tmServicio;
	}
	
}